package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="HiddenTrouble"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class HiddenTrouble implements Serializable {

    /** identifier field */
    private Integer troubleId;

    /** nullable persistent field */
    private String troubleName;

    /** nullable persistent field */
    private String locality;

    /** nullable persistent field */
    private String comeName;

    /** nullable persistent field */
    private String linkMan;

    /** nullable persistent field */
    private String tel;

    /** nullable persistent field */
    private String measure;

    /** persistent field */
    private String state;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public HiddenTrouble(String troubleName, String locality, String comeName, String linkMan, String tel, String measure, String state, String userId, String latestDate, String remark) {
        this.troubleName = troubleName;
        this.locality = locality;
        this.comeName = comeName;
        this.linkMan = linkMan;
        this.tel = tel;
        this.measure = measure;
        this.state = state;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public HiddenTrouble() {
    }

    /** minimal constructor */
    public HiddenTrouble(String state, String userId) {
        this.state = state;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="TroubleId"
     *             unsaved-value="0"
     *         
     */
    public Integer getTroubleId() {
        return this.troubleId;
    }

    public void setTroubleId(Integer troubleId) {
        this.troubleId = troubleId;
    }

    /** 
     *            @hibernate.property
     *             column="TroubleName"
     *             length="100"
     *         
     */
    public String getTroubleName() {
        return this.troubleName;
    }

    public void setTroubleName(String troubleName) {
        this.troubleName = troubleName;
    }

    /** 
     *            @hibernate.property
     *             column="Locality"
     *             length="100"
     *         
     */
    public String getLocality() {
        return this.locality;
    }

    public void setLocality(String locality) {
        this.locality = locality;
    }

    /** 
     *            @hibernate.property
     *             column="ComeName"
     *             length="100"
     *         
     */
    public String getComeName() {
        return this.comeName;
    }

    public void setComeName(String comeName) {
        this.comeName = comeName;
    }

    /** 
     *            @hibernate.property
     *             column="LinkMan"
     *             length="20"
     *         
     */
    public String getLinkMan() {
        return this.linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    /** 
     *            @hibernate.property
     *             column="Tel"
     *             length="20"
     *         
     */
    public String getTel() {
        return this.tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    /** 
     *            @hibernate.property
     *             column="Measure"
     *             length="2147483647"
     *         
     */
    public String getMeasure() {
        return this.measure;
    }

    public void setMeasure(String measure) {
        this.measure = measure;
    }

    /** 
     *            @hibernate.property
     *             column="State"
     *             length="6"
     *             not-null="true"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("troubleId", getTroubleId())
            .toString();
    }

}
